Repository navigation
docs(router): add File Inputs and Web Fetch feature pages - #433
Open
gaoteng-git wants to merge 2 commits into
Open
gaoteng-git wants to merge 2 commits into
gaoteng-git wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@gaoteng-git-0g is attempting to deploy a commit to the 0g-Frontend Team on Vercel. A member of the Team first needs to authorize it. |
…e inputs Requests to 0gm-1.0-35b-a3b and glm-5.3 are sealed by the E2EE gateway before they reach the Router, so the Router cannot extract a file's text and the provider rejects the unconverted file part with a 400. Refs 0gfoundation/0g-router#1196. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
router/features/file-inputs.md. Covers attaching files inline onPOST /v1/chat/completions({"type":"file"}) andPOST /v1/messages({"type":"document"}, base64 source):"file_parse"inx_0g_trace.request_rewritten;400codes;router/features/web-fetch.md. Covers the{"type":"0g:web_fetch"}tool:max_uses,max_content_tokens,allowed_domains,blocked_domains, and theopenrouter:web_fetchform;web_fetch_cost, and the per-round-wfNusage entries.features/chat-completions.md: a pointer to each page.sidebars.ts: added both pages under Router › Features.The style follows the open Web Search page (#421). The two pages do not link to it, so the build does not depend on #421 being merged.
Verification
request_rewritten: ["file_parse"]request_rewritten: ["file_parse"]web_fetch_cost: "2000"(2 pages)web_fetch_cost: "2000"(2 pages)unsupported_file_typeon chat, andunsupported_file_sourceon messages.mainin two rounds. The last round found nothing at HIGH or MEDIUM.pnpm buildand cspell pass.Before merging
Both features are on in staging only. On mainnet,
features.file_parts,features.web_fetch_toolandsearch.fetch_price_usdare not set yet; the page price is $0.001 on staging. Merge this PR after mainnet turns the flags on, and check that the mainnet page price matches the $0.001 stated here.Deliberately left out
/v1/responses(input_file): the Responses API is not documented publicly.🤖 Generated with Claude Code
This change is